package com.ifnk.portaljava.dapWeb.pojo;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

public class Server implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2903901031324944339L;
	private int id;
	private Location location;
	private String serverName;
	private Set<ServerAllowedIp> serverAllowedIpSet = new HashSet<ServerAllowedIp>();
	private Set<PointCode14> pointCode14Set = new HashSet<PointCode14>();
	private Set<PointCode24> pointCode24Set = new HashSet<PointCode24>();

	public String toString(){
		return id+":"+location+":";
	}
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Location getLocation() {
		return location;
	}

	public void setLocation(Location location) {
		this.location = location;
	}

	public String getServerName() {
		return serverName;
	}

	public void setServerName(String serverName) {
		this.serverName = serverName;
	}

	public Set<ServerAllowedIp> getServerAllowedIpSet() {
		return serverAllowedIpSet;
	}

	public void setServerAllowedIpSet(Set<ServerAllowedIp> serverAllowedIpSet) {
		this.serverAllowedIpSet = serverAllowedIpSet;
	}

	public Set<PointCode14> getPointCode14Set() {
		return pointCode14Set;
	}

	public void setPointCode14Set(Set<PointCode14> pointCode14Set) {
		this.pointCode14Set = pointCode14Set;
	}

	public Set<PointCode24> getPointCode24Set() {
		return pointCode24Set;
	}

	public void setPointCode24Set(Set<PointCode24> pointCode24Set) {
		this.pointCode24Set = pointCode24Set;
	}

}
